<template>
  <view class="addrexxbox">
	   <view class="l">
		    <view class="l-t">
			   {{data.address_address}}
			</view>
		    <view class="l-b">
				 {{data.username}}{{+data.sex?'女士':'先生'}}  <text>{{data.phone}}</text>
			</view>
	   </view>
	   <view class="r">
		    <view class="iconfont icon-bianji" @click.stop="update_address"></view>
	   </view>
  </view>
</template>

<script setup>
	const prop= defineProps(['data'])
	const update_address=()=>{
		uni.navigateTo({
			url:`/pages/updateaddress/updateaddress?data=${JSON.stringify(prop.data)}`
		})
	}
</script>

<style lang="scss" scoped>
	.addrexxbox{
		height: 130rpx;
		width: 100%;
		background-color: #fff;
		border-radius: 15rpx;
		display: flex;
		align-items: center;
		padding: 0 15rpx;
		.l{
			flex: 1;
			display: flex;
			flex-direction: column;
			justify-content: center;
			gap: 15rpx;
			.l-t{
				font-size: 25rpx;
				font-weight: 700;
				width: 70%;
				overflow: hidden;
				text-overflow: ellipsis;
				white-space: nowrap;
			}
			.l-b{
				font-size: 25rpx;color: #7b7b7b;
				text{
					margin-left: 10rpx;
				}
			}
		}
		.r{
			width: 60rpx;
			height: 100%;
			line-height: 110rpx;
			.iconfont{
				font-size: 25rpx;
				color: #7b7b7b;
			}
		}
	}
</style>